const inquirer = require('inquirer');
const gene = require('./generetor');

inquirer.prompt(
    [{
        type: 'input',
        name: 'name',
        message: '目录名称'
    },{
        type: 'input',
        name: 'title',
        message: '标题名'
    }]
).then(function(answer){
    gene({
        name: answer.name,
        data: {
            title: answer.title,
            content: '内容'
        }
    }, './template', './src');
})